package com.freepay.infrastructure.persistence;


import se.citerus.dddsample.infrastructure.persistence.hibernate.HibernateRepository;
import org.springframework.stereotype.Repository;
import com.freepay.domain.model.empresa_vendedora.Cajero;
import com.freepay.domain.model.empresa_vendedora.CajeroRepository;


@Repository
public class CajeroRepositoryHibernate  extends HibernateRepository implements CajeroRepository {

  @Override
  public Cajero getInstance(int idcajero) {
    return (Cajero) getSession().
      createQuery("from Cajero where idcajero= :idcajero").
      setParameter("idcajero", idcajero).
      uniqueResult();
  }  
  
}
